xend: Fix 'xm pci_list_assignable_devices'
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:28:08 +0000 (11:28 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:28:08 +0000 (11:28 +0100)
commit75f6b53ab0b00cd26540c75dcde4be184cae9794
tree704af2af225e0536341c775f0a49f484420536d2
parent23d864769a614ec5ae094b0deddb67fe674d2aa6
xend: Fix 'xm pci_list_assignable_devices'

The current implementation of 'xm pci-list-assignable-devices' command
has a problem that it directly invokes hypercall using
xen.lowlevel.xc.
This is probably based on an assumption that the command is executed
on the host itself, but in fact there are cases xm commands can be
executed on a remote server through xmlrpc.
So this patch makes the xm command just inquire of xend about the
information of available devices.

Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
tools/python/xen/xend/XendNode.py
tools/python/xen/xend/server/XMLRPCServer.py
tools/python/xen/xm/main.py